package com.example.boot.imooctest;

import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;
//import org.springframework.stereotype.Service;
import org.springframework.stereotype.Service;

@Service
// @Component
public class Consumer {

	@JmsListener(destination = "boot-jms2")
	public void receiveQueue(String text) {
		System.out.println("Consumer收到的报文为:" + text);
	}

	// @JmsListener(destination = "boot-jms1")
	// public void testTopic() {
	// System.out.println("主题模式下:" + test);
	//
	// }

}
